package com.zhentao.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhentao.dao.AfterSaleMapper;
import com.zhentao.entity.order.AfterSale;
import com.zhentao.service.OrderService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl extends ServiceImpl<AfterSaleMapper, AfterSale> implements OrderService {

    @Override
    public List<AfterSale> selA() {
        QueryWrapper<AfterSale> wrapper = new QueryWrapper<>();
        wrapper.eq("service_status", 1);
        return this.baseMapper.selectList(wrapper);
    }

    @Override
    public List<AfterSale> selB() {
        QueryWrapper<AfterSale> wrapper = new QueryWrapper<>();
        wrapper.eq("service_status", 2);
        return this.baseMapper.selectList(wrapper);
    }

    @Override
    public List<AfterSale> selC() {
        QueryWrapper<AfterSale> wrapper = new QueryWrapper<>();
        wrapper.eq("service_status", 3);
        return this.baseMapper.selectList(wrapper);
    }
}
